package tr.gov.tubitak.bilgem.esya.certselector;

import tr.gov.tubitak.bilgem.esya.certviewer.viwerasn.ECertViewerCertificate;

/**
 * Created by IntelliJ IDEA.
 * User: ramazan.girgin
 * Date: 10.10.2011
 * Time: 08:59
 * To change this template use File | Settings | File Templates.
 */
public class CertInfo {

    public CertInfo(ECertViewerCertificate eCertViewerCert) {
        this.eCertViewerCert = eCertViewerCert;
    }

    public String toString()
    {
        String retStr = "";
        String commonNameAttribute = eCertViewerCert.getSubject().toTitle();
        retStr = commonNameAttribute;
        if(eCertViewerCert.isQualifiedCertficate())
        {
            retStr+=" ("+CertSelectorBundle.getString("CertInfo.Qualified")+")";
        }
        return retStr;
    }

    public ECertViewerCertificate geteCertViewerCert() {
        return eCertViewerCert;
    }

    ECertViewerCertificate eCertViewerCert;
}
